/*
 * Message.java
 *
 * Created on 16 luglio 2005, 1.18
 *
 * Represents the interface of the standard message
 * that is exchanged between client and server
 *
 * @version 1.1
 * @author Federico Paparoni
 */

package com.javastaff.btfree;

public interface Message {
    
    /**
     * Retrieve the length of the message
     *
     *@return Lenght of the message
     */
    
    public int getLength();
    
    /**
     * Retrieve a byte array from the message
     *
     * @return Byte array of the message
     */
    
    public byte[] getMessage();
    
    /**
     * Set the message content
     *
     * @param msg Message content
     * 
     */
    
    public void setMessage(String msg);
}
